<?php

// -----------------------------------------------------------------------------

include 'config/config.php';
include "DBManager.php";

// 取消超时
set_time_limit(0);

// -----------------------------------------------------------------------------

try {

    $db = new DBManager($dbPath);
    $db->reCreateDatabase();

    $url = "/";
    header("refresh:2; url=$url");
    
    echo "数据库重置成功。";

} catch (Exception $e) {

    echo $e->getMessage();

}


